package com.chuangsi.project.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chuangsi.project.admin.domain.TLog;
import com.chuangsi.project.admin.dto.admin.log.LogPageQueryRes;


import java.time.LocalDateTime;

/**
 * <p>
 * 操作日志 服务类
 * </p>
 *
 * @author ocean
 * @since 2020-02-06
 */
public interface ITLogService extends IService<TLog> {
    /**
     * 按月分表添加日志
     * @param log
     */
    void insert(TLog log);

    /**
     * 按月分页查询日志
     * @param logPageQueryResPage
     * @param userName
     * @param startTime
     * @param endTime
     * @return
     */
    IPage<LogPageQueryRes> logPageQuery(Page<LogPageQueryRes> logPageQueryResPage, String userName, LocalDateTime startTime, LocalDateTime endTime);
}
